/*
 * ADCC1.h
 *
 *  Created on: 04/01/2013
 *      Author: RIchard
 */

#ifndef ADCC1_H_
#define ADCC1_H_

#include "../../cdef.h"

#define ADC_nDMAChannel DMA_nenChannel0

typedef enum
{
   ADC_nenFirstChannel        = 0u,

   ADC_nenPressure            = ADC_nenFirstChannel,
   ADC_nenLight               = 1u,

   ADC_nenNumberOfChannels    = 2u
} ADC_tenChannel;

typedef struct
{
      ADC_tenChannel enChannel;
      uint8          u8Samples;
      uint16        *pu16DestBuffer;
      tvFuncPtr      pfOKCallback;
} ADC_tstRequest;

void ADC_vReset( void );
void ADC_vReadRequest( ADC_tstRequest *stRequest );
void ADC_vStopSampling( void );

#endif /* ADCC1_H_ */
